//
//  AppDelegate.h
//  YJB
//
//  Created by 中电大维 on 16/5/12.
//  Copyright © 2016年 YJB. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SRWebSocket.h"

@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic,nullable) UIWindow *window;
@property (nonatomic,strong,nullable) SRWebSocket *wSocket;

/* 卡消息 */
@property(nonatomic,strong,nullable)NSMutableArray  *cardMessages;
/** 是否已连接ws服务器 */
@property (nonatomic,assign)BOOL isConnectWebsocket;
/** 是否正在获取离线消息 */
@property(nonatomic,assign)BOOL isObtainOfflineMsg;
/** 当前ID，用来判断消息是否是来自于当前正在聊的会话者 */
@property(nonatomic,copy,nullable)NSString  *ID;
/** 连接webSocket服务器 */
- (void)connectSocket;
/** 获取卡消息 */
- (void)getCardMessageWithCardId:(nullable NSString *)cardId messageId:(nullable NSNumber *)messageId;

@end

